package cn.ibizlab.odoo.core.odoo_purchase.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_purchase.domain.Purchase_order_line;
import cn.ibizlab.odoo.core.odoo_purchase.filter.Purchase_order_lineSearchContext;

/**
 * 实体[Purchase_order_line] 服务对象接口
 */

public interface IPurchase_order_lineService{
     boolean create(Purchase_order_line purchase_order_line) ;
     boolean update(Purchase_order_line purchase_order_line) ;
     void updateBatch(List<Purchase_order_line> purchase_order_lines, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     Purchase_order_line get(Integer id) ;
     Purchase_order_line get(Purchase_order_line purchase_order_line) ;
     boolean remove(Integer id) ;
     void createBatch(List<Purchase_order_line> purchase_order_lines, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Purchase_order_line> searchDefault(Purchase_order_lineSearchContext context) ;

    /**
     * 根据分析账户查询
     */
     Page<Purchase_order_line> selectByOdoo_account_analytic(Integer id) ;

    /**
     * 根据产品查询
     */
     Page<Purchase_order_line> selectByOdoo_product(Integer id) ;

    /**
     * 根据采购订单查询
     */
     Page<Purchase_order_line> selectByOdoo_order(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Purchase_order_line> selectByOdoo_company(Integer id) ;

    /**
     * 根据币种查询
     */
     Page<Purchase_order_line> selectByOdoo_currency(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Purchase_order_line> selectByOdoo_partner(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Purchase_order_line> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Purchase_order_line> selectByOdoo_write(Integer id) ;

    /**
     * 根据销售订单行查询
     */
     Page<Purchase_order_line> selectByOdoo_sale_line(Integer id) ;

    /**
     * 根据销售订单查询
     */
     Page<Purchase_order_line> selectByOdoo_sale_order(Integer id) ;

    /**
     * 根据最小库存规则查询
     */
     Page<Purchase_order_line> selectByOdoo_orderpoint(Integer id) ;

    /**
     * 根据产品计量单位查询
     */
     Page<Purchase_order_line> selectByOdoo_product_uom(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Purchase_order_line convert2Domain(cn.ibizlab.odoo.core.client.model.Ipurchase_order_line model ,Purchase_order_line domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Ipurchase_order_line convert2Model(Purchase_order_line domain , cn.ibizlab.odoo.core.client.model.Ipurchase_order_line model);

}
